﻿class RealtyObject {
    static hasMany = [price : Price]
    FlatDetails flatDetails;
    HouseDetails houseDetails;
    
    Long externalId;

    static constraints = {
          flatDetails(nullable:true)
          houseDetails(nullable:true)
   }
}
